package com.uduemc.biso.node.web.api.service.fegin;

import java.io.IOException;
import java.util.List;

import com.uduemc.biso.node.core.entities.SComponentForm;

public interface SComponentFormService {

	/**
	 * 写入 SComponentForm 数据
	 *
	 * @param sComponentForm
	 * @return
	 * @throws IOException
	 */
	SComponentForm insert(SComponentForm sComponentForm) throws IOException;

	/**
	 * 查询获得 SComponentForm 数据
	 * 
	 * @param id
	 * @param hostId
	 * @param siteId
	 * @return
	 * @throws IOException
	 */
	SComponentForm findSComponentForm(long id, long hostId, long siteId) throws IOException;

	SComponentForm findSComponentForm(long id, long hostId, long siteId, long formId) throws IOException;

	/**
	 * 通过参数 hostId、formId 获取状态为 status 的数据列表
	 * 
	 * @param hostId
	 * @param formId
	 * @param status
	 * @return
	 * @throws IOException
	 */
	List<SComponentForm> findInfosByHostFormIdStatus(long hostId, long formId, short status) throws IOException;

	/**
	 * 更新数据
	 * 
	 * @param sComponentForm
	 * @return
	 * @throws IOException
	 */
	SComponentForm update(SComponentForm sComponentForm) throws IOException;
}
